package com.atjinggu.jinggumail;

import com.atjinggu.jinggumail.common.config.SessionConfig;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;

@EnableRabbit
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication
@EnableFeignClients
@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = SessionConfig.class))
public class JinggumailWareApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(JinggumailWareApplication.class, args);
    }

}
